import { SYS_LOCAL_DIC } from '@/util/SYS_LOCAL_DIC'
import { DeptUrl,UnitDicUrl } from '@/views/system/dic/dicApi'
// import i18n from '@/lang' // Internationalization

export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    excelBtn: true,
    menuWidth:130,
    // title:i18n.t("system.user.title"),//表格的标题
    // title: '系统用户表',//表格的标题
    stripe: false,
    selection: true,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    dicData: SYS_LOCAL_DIC,
    column: [{
        label: "部门名称",
        prop: "deptName",
        tip: '这是信息提示',
        width: 120,
        sortable: true,
        search: true,
        solt: true,
        showClomnu: false, //列不显示无法控制
        placeholder: '请输入部门名称',
        rules: [{ required: true, message: "请输入部门名称", trigger: "blur" }]
    },
    {
        label: "上级部门",
        prop: "parentId",
        row: true,
        span: 12,
        search: true,
        type: 'select',
        props: { value: 'id', label: 'deptName' },
        dicUrl: DeptUrl,
    },
    {
        label: "顺序",
        prop: "sortNo",
        width: "50",
        valueDefault: 10,
        addVisdiplay: false,
        editDisabled: false,
    },
    {
        label: "单位",
        prop: "unitId",
        span: 12,
        row: true,
        search: true,
        type: 'select',
        props: { value: 'id', label: 'unitName' },
        dicUrl: UnitDicUrl,
    },
    {
        label: "状态",
        prop: "enable",
        width: "50",
        valueDefault: 1,
        type: "switch",
        dicData: SYS_LOCAL_DIC.STATE,
    },
    {
        label: "备注信息",
        prop: "remark",
        align: "left",
        sortable: false,
        type: 'textarea',
        maxRow: 4,
        minRow: 4,
        span: 24,
        disabled: false,
        addDisabled: false,
        overHidden: true
    },
    ]
};